import alert from './Alert.vue'
import Vue from 'vue'

const alertConstructor = Vue.extend(alert)

export const serve = (message) => {
    let Alert = new alertConstructor()
    Alert.$mount(document.createElement('div'))
    document.body.appendChild(Alert.$el)
    Alert.title = message.title;
    Alert.content = message.content;
    return Alert
}